<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<button id="xxx" type="button">关闭</button>
<a href="22.html">下一个</a>

<button type="button" onclick="history.forward()">前进</button>


<script>
    document.getElementById('xxx').onclick = function () {
        // 关闭当前页，本页只有是通过open()打开的时候才能生效
        close()

    }
</script>
</body>
</html>